package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.CompanyCouponRequest;
import one.stand.response.CompanyCouponResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: QIK
 * @CreateDate: 2019/6/25 9:31
 */
@RestController
@RequestMapping("company/coupon")
public class CompanyCouponController extends BaseController {
    /**
     * 获取企业优惠券
     * @param request
     * @return
     */
    @PostMapping("getCompanyCouponList")
    public ResultModel<List<CompanyCouponResponse>> getCompanyCouponList(@RequestBody CompanyCouponRequest request){
        return companyCouponService.selectGoodsTypeAndCompanyNameByCompanyId(request);
    }
}
